package cn.maiyar.web.url.config;

import cn.maiyar.web.url.UrlProperties;
import cn.maiyar.web.url.service.UrlService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * url配置信息
 *
 * @author c.c
 **/
@Slf4j
@EnableConfigurationProperties(UrlProperties.class)
public class UrlConfiguration {

    @Bean
    public UrlService build(UrlProperties urlProperties) {
        log.debug("初始化 UrlConfiguration!");
        return new UrlService(urlProperties);
    }
}
